<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>JaDe Tokenizer: JADE.Segmenter Klassenreferenz</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="JaDe.jpg"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">JaDe Tokenizer
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Erzeugt von Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Suchen');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Hauptseite</span></a></li>
      <li><a href="namespaces.html"><span>Pakete</span></a></li>
      <li class="current"><a href="annotated.html"><span>Klassen</span></a></li>
      <li><a href="files.html"><span>Dateien</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Suchen" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Auflistung&#160;der&#160;Klassen</span></a></li>
      <li><a href="classes.html"><span>Klassen-Verzeichnis</span></a></li>
      <li><a href="functions.html"><span>Klassen-Elemente</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('class_j_a_d_e_1_1_segmenter.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Öffentliche Methoden</a> &#124;
<a href="#pri-methods">Private Methoden</a> &#124;
<a href="#pri-attribs">Private Attribute</a>  </div>
  <div class="headertitle">
<div class="title">JADE.Segmenter Klassenreferenz</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="JADE::Segmenter" -->
<p>Segmenter-Klasse enthält die Funktionen zum Tokenisieren des Eingabe Textes.  
 <a href="class_j_a_d_e_1_1_segmenter.html#details">Mehr ...</a></p>

<p><a href="class_j_a_d_e_1_1_segmenter-members.html">Aufstellung aller Elemente</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Öffentliche Methoden</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_j_a_d_e_1_1_daten.html">Daten</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_a_d_e_1_1_segmenter.html#aa5a65c30d371681628783c3b17be197c">TinySegmenter</a> (String input)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_a_d_e_1_1_segmenter.html#a23f7bb05aaf164972d1e14f8560e5586">TextTest</a> (String text)</td></tr>
<tr><td colspan="2"><h2><a name="pri-methods"></a>
Private Methoden</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_a_d_e_1_1_segmenter.html#abc36a4df9af5aec57560d4faa4af652f">ctype_</a> (String str)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_a_d_e_1_1_segmenter.html#ac0ff72959ddcfc2ef01016f84bacf839">ts_</a> (Hashtable table, String s)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_a_d_e_1_1_segmenter.html#a9a4ecd3b328ea2f7694bc799d82043a9">type</a> (String eingabe)</td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attribute</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">Hashtable&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_a_d_e_1_1_segmenter.html#a8766e57e08be3ce6c4a23b3489266029">chartype_</a> = new Hashtable()</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Ausführliche Beschreibung</h2>
<div class="textblock"><p>Segmenter-Klasse enthält die Funktionen zum Tokenisieren des Eingabe Textes. </p>
<p>This Tokenizer is based on Taku Kudo's "Tiny Segmenter". Just adapted in c# and modified for the use in this project.</p>
<p>Copyright (c) 2008, Taku Kudo</p>
<p>All rights reserved.</p>
<ul>
<li>Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.</li>
<li>Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.</li>
<li>Neither the name of the &lt;ORGANIZATION&gt; nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.</li>
</ul>
<p>THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. </p>

<p>Definiert in Zeile <a class="el" href="_segmenter_8cs_source.html#l00046">46</a> der Datei <a class="el" href="_segmenter_8cs_source.html">Segmenter.cs</a>.</p>
</div><hr/><h2>Dokumentation der Elementfunktionen</h2>
<a class="anchor" id="abc36a4df9af5aec57560d4faa4af652f"></a><!-- doxytag: member="JADE::Segmenter::ctype_" ref="abc36a4df9af5aec57560d4faa4af652f" args="(String str)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string <a class="el" href="class_j_a_d_e_1_1_segmenter.html#abc36a4df9af5aec57560d4faa4af652f">JADE.Segmenter.ctype_</a> </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Die Funktion dient zur Bestimmung des Typs eines Einzelzeichens (Zahlzeichen, Hiragana, Katakana, Zahlen, westliche Schrifteichen, Sonderzeichen und Sonstige) Erhält einen String, vergleicht diesen mit den Regular-Expression-Einträgen in einer Hashtable und gibt bei Übereinstimmung den Schlüsselwert(String) zurück. </p>
<dl class="params"><dt><b>Parameter:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">str</td><td>String-Wert, welcher auf Zeichenart untersucht werden soll. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">s</td><td>String-Wert aus dem Value eines Hashtable Eintrages. </td></tr>
  </table>
  </dd>
</dl>

<p>Definiert in Zeile <a class="el" href="_segmenter_8cs_source.html#l00619">619</a> der Datei <a class="el" href="_segmenter_8cs_source.html">Segmenter.cs</a>.</p>

<p>Benutzt <a class="el" href="_segmenter_8cs_source.html#l00049">JADE.Segmenter.chartype_</a>.</p>

</div>
</div>
<a class="anchor" id="a23f7bb05aaf164972d1e14f8560e5586"></a><!-- doxytag: member="JADE::Segmenter::TextTest" ref="a23f7bb05aaf164972d1e14f8560e5586" args="(String text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_j_a_d_e_1_1_segmenter.html#a23f7bb05aaf164972d1e14f8560e5586">JADE.Segmenter.TextTest</a> </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Diese Funktion dient dazu, in einen Text (Eingabe-String) dem Japanischen fremde Zeichen zu identifizieren. Sie gibt momentan eine Warnmeldung aus, falls ein nicht japanischen Zeichen im Text vorkommt. Anpassungen sind hier noch vorgesehen. </p>
<dl class="params"><dt><b>Parameter:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">text</td><td>String-Objekt, das auf nicht japanische Zeichen hin untersucht werden soll. </td></tr>
  </table>
  </dd>
</dl>

<p>Definiert in Zeile <a class="el" href="_segmenter_8cs_source.html#l00706">706</a> der Datei <a class="el" href="_segmenter_8cs_source.html">Segmenter.cs</a>.</p>

<p>Benutzt <a class="el" href="_segmenter_8cs_source.html#l00662">JADE.Segmenter.type()</a>.</p>

</div>
</div>
<a class="anchor" id="aa5a65c30d371681628783c3b17be197c"></a><!-- doxytag: member="JADE::Segmenter::TinySegmenter" ref="aa5a65c30d371681628783c3b17be197c" args="(String input)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_j_a_d_e_1_1_daten.html">Daten</a> <a class="el" href="class_j_a_d_e_1_1_segmenter.html#aa5a65c30d371681628783c3b17be197c">JADE.Segmenter.TinySegmenter</a> </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>input</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Eine Funktion, welche einen String aus japanischen Zeichen in seine Token zerlegt. Die Funktion gibt ein Objekt unserer Daten-Klasse zurück. </p>
<dl class="params"><dt><b>Parameter:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">input</td><td>string-Variable mit dem zu tokenisierenden Text. </td></tr>
  </table>
  </dd>
</dl>

<p>Definiert in Zeile <a class="el" href="_segmenter_8cs_source.html#l00056">56</a> der Datei <a class="el" href="_segmenter_8cs_source.html">Segmenter.cs</a>.</p>

<p>Benutzt <a class="el" href="_segmenter_8cs_source.html#l00049">JADE.Segmenter.chartype_</a>, <a class="el" href="_segmenter_8cs_source.html#l00619">JADE.Segmenter.ctype_()</a>, <a class="el" href="_segmenter_8cs_source.html#l00640">JADE.Segmenter.ts_()</a> und <a class="el" href="daten_8cs_source.html#l00032">JADE.Daten.Zugriff</a>.</p>

</div>
</div>
<a class="anchor" id="ac0ff72959ddcfc2ef01016f84bacf839"></a><!-- doxytag: member="JADE::Segmenter::ts_" ref="ac0ff72959ddcfc2ef01016f84bacf839" args="(Hashtable table, String s)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="class_j_a_d_e_1_1_segmenter.html#ac0ff72959ddcfc2ef01016f84bacf839">JADE.Segmenter.ts_</a> </td>
          <td>(</td>
          <td class="paramtype">Hashtable&#160;</td>
          <td class="paramname"><em>table</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>s</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Diese Funktion erhält eine Hashtable und einen String, prüft ob der String in der Hashtable als Schlüssel vorhanden ist und gibt in diesem Fall den int-Wert des dazugehörigen Wertes zurück, ansonsten 0. </p>
<dl class="params"><dt><b>Parameter:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir"></td><td class="paramname">table[in]</td><td>Hashtable-Objekt. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">s</td><td>String-Objekt das auf Übereinstimmung in der Hashtable geprüft werden soll. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">ret</td><td>Int-Wert (Score). </td></tr>
  </table>
  </dd>
</dl>

<p>Definiert in Zeile <a class="el" href="_segmenter_8cs_source.html#l00640">640</a> der Datei <a class="el" href="_segmenter_8cs_source.html">Segmenter.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a9a4ecd3b328ea2f7694bc799d82043a9"></a><!-- doxytag: member="JADE::Segmenter::type" ref="a9a4ecd3b328ea2f7694bc799d82043a9" args="(String eingabe)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">String <a class="el" href="class_j_a_d_e_1_1_segmenter.html#a9a4ecd3b328ea2f7694bc799d82043a9">JADE.Segmenter.type</a> </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>eingabe</em></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Diese Funktion testet, ob ein Eingabe-Sring der japanischen Sprache zugehörig ist. Sie testet den eingegebenen String (in unserem Fall immer ein einzel-Char) mittles Regular Expressions auf Zugehörigkeit zum japanischen Zeichensatz. Rückgabewerte sind String Objekte. "J" für japanisches Zeichen. "O" für nicht japanisches Zeichen. Hier wurde nicht mit boolschen Rückgabe-Werten gearbeitet, weil eine spätere Modifikation bzw. Spezifikation des Rückgabewertes möglich sein sollte. </p>
<dl class="params"><dt><b>Parameter:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">eingabe</td><td>String-Wert, der auf japanische Zeichen hin untersucht werden soll. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">s</td><td>String-Wert aus dem Wert eines Hashtable Eintrages. </td></tr>
  </table>
  </dd>
</dl>

<p>Definiert in Zeile <a class="el" href="_segmenter_8cs_source.html#l00662">662</a> der Datei <a class="el" href="_segmenter_8cs_source.html">Segmenter.cs</a>.</p>

</div>
</div>
<hr/><h2>Dokumentation der Datenelemente</h2>
<a class="anchor" id="a8766e57e08be3ce6c4a23b3489266029"></a><!-- doxytag: member="JADE::Segmenter::chartype_" ref="a8766e57e08be3ce6c4a23b3489266029" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Hashtable <a class="el" href="class_j_a_d_e_1_1_segmenter.html#a8766e57e08be3ce6c4a23b3489266029">JADE.Segmenter.chartype_</a> = new Hashtable()<code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Private Variable vom Typ Hashtable. Sie wird in der Klasse zur Zeichentypbestimmung genutzt. </p>

<p>Definiert in Zeile <a class="el" href="_segmenter_8cs_source.html#l00049">49</a> der Datei <a class="el" href="_segmenter_8cs_source.html">Segmenter.cs</a>.</p>

</div>
</div>
</div><!-- contents -->
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Alle</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Klassen</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namensbereiche</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funktionen</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variablen</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Propertys</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespace_j_a_d_e.html">JADE</a>      </li>
      <li class="navelem"><a class="el" href="class_j_a_d_e_1_1_segmenter.html">Segmenter</a>      </li>

    <li class="footer">Erzeugt am Fre Mär 2 2012 15:52:52 für JaDe Tokenizer von
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
